package com.epro.standard.frontend.datasetup;

public class MonthLabel {
    private java.sql.Connection con;
    private java.sql.Statement stmt;
    private java.sql.ResultSet rs;

    private static final String BUNDLE_NAME = 
        "com.epro.standard.FrontendSetting"; //$NON-NLS-1$
    private static final java.util.ResourceBundle RESOURCE_BUNDLE = 
        java.util.ResourceBundle.getBundle(BUNDLE_NAME);


    public MonthLabel() {
    }

    public static String getString(String key) {
        try {
            return RESOURCE_BUNDLE.getString(key);
        } catch (java.util.MissingResourceException e) {
            return "";
        }
    }

    public static String getMonthLabel(int month) throws java.io.IOException {
        String str = "";
        switch (month) {
        case 0:
            str = 
com.epro.standard.frontend.util.StringUtil.encode2Thai(getString("MONTH1"));
            break;
        case 1:
            str = 
com.epro.standard.frontend.util.StringUtil.encode2Thai(getString("MONTH2"));
            break;
        case 2:
            str = 
com.epro.standard.frontend.util.StringUtil.encode2Thai(getString("MONTH3"));
            break;
        case 3:
            str = 
com.epro.standard.frontend.util.StringUtil.encode2Thai(getString("MONTH4"));
            break;
        case 4:
            str = 
com.epro.standard.frontend.util.StringUtil.encode2Thai(getString("MONTH5"));
            break;
        case 5:
            str = 
com.epro.standard.frontend.util.StringUtil.encode2Thai(getString("MONTH6"));
            break;
        case 6:
            str = 
com.epro.standard.frontend.util.StringUtil.encode2Thai(getString("MONTH7"));
            break;
        case 7:
            str = 
com.epro.standard.frontend.util.StringUtil.encode2Thai(getString("MONTH8"));
            break;
        case 8:
            str = 
com.epro.standard.frontend.util.StringUtil.encode2Thai(getString("MONTH9"));
            break;
        case 9:
            str = 
com.epro.standard.frontend.util.StringUtil.encode2Thai(getString("MONTH10"));
            break;
        case 10:
            str = 
com.epro.standard.frontend.util.StringUtil.encode2Thai(getString("MONTH11"));
            break;
        case 11:
            str = 
com.epro.standard.frontend.util.StringUtil.encode2Thai(getString("MONTH12"));
            break;
        default:
        }
        return str;
    }
}

